<!DOCTYPE html>
<html lang="en">
    <head>
        <?php require_once('../modulos/header.php'); ?> 
        
            <body  style="background-image: url(../img/rayas_verticales.jpg); background-size: 100%;">
               
                <?php require_once('../modulos/navbar.php'); ?>
                
                <div class='row'>
                    <br><br><br>
                    <div class="col-md-6 text-center col-lg-offset-3" style="background: #e7e7e7; border-radius: 15px;">
                        <?php 
                        require_once '../conex.php';
                            $fila = $_POST['idOpo'];
                            $data = explode("/", $fila);
                        ?>
                        <a href="../vistas/mod_formaciones.php">
                            <div class="col-md-1 text-left" style="height: 50px; padding-top: 10px">
                                <strong>Volver</strong>
                            </div>
                        </a>
                        <br>
                        <br>
                        <p class="lead"><strong>ID: </strong><?php echo $data[0]; ?></p>
                        <p class="lead"><strong>Formación: </strong><?php echo $data[1]; ?></p>
                        <br>
                        <form method="POST" action="../editar/formacion.php">
                            <label>Nueva formación:</label>
                            <input name="for" type="text" class="form-control" placeholder="4-3-3" required>
                            <br>
                            <input name="idOpo" value=" <?php echo $data[0]; ?> " class="form-control" style="display: none;">
                            <button type="submit" class="btn btn-success"> Guardar</button>  
                        </form>
                </div> <!-- /container -->          
            </div> 
       
        <script type='text/javascript' src="../js/jquery.min.js"></script>
        <script type='text/javascript' src="../js/bootstrap.js"></script>
        <script type='text/javascript' src="../js/bootstrap.min.js"></script>
        
        <script type="text/javascript">
            function redirect(){
                window.location = "../modificar/mod_oponentes.php";
            }
        </script>
    </body>
</html>